<template>
  <div class="main">
    <router-view v-slot="{ Component, route }">
      <keep-alive :include="keepRouter">
        <component :is="Component" :key="$route.name" />
      </keep-alive>
    </router-view>
  </div>
</template>

<script setup lang="ts">
import { useRoutingTagStore } from "/@/store/index";
const keepRouter = computed(() => useRoutingTagStore().activeRouter);
</script>

<style scoped></style>
